package edu.ecnu.yt.spring.di.compactdisc;


public class BlankDisc implements CompactDisc {

	public String title;
	public String artist;
	
	/**
	 * 如果要在xml中使用property标签，应该需要一个默认的构造函数，防止无法进行构造。
	 */
	public BlankDisc() {}
	
	public BlankDisc(String title, String artist) {
		this.title = title;
		this.artist = artist;
	}
	
	public void setTitle(String title) {
		this.title = title;
	}
	
	public void setArtist(String artist) {
		this.artist = artist;
	}
	
	
	public void play() {
		System.out.println("Playing " + title + " by " + artist);		
	}

}
